<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>轮播图</title>
    <script>
        /**
         *
         */
    </script>
</head>
<body>
<img id="one" src="pic1.jpg">
<!--<img id="two" src="Champion.jpg">-->
<!--<img id="three" src="Test.jpg.jpg">-->
<script>
    var num = 1;
    function changePic() {
        num++;
        if(num>3){
            num=1;
        }
        var objjj=document.getElementById("one");
        objjj.src="pic"+num+".jpg"
    }
    setInterval(changePic,3000)
</script>

</body>
</html>